package com.amumu.drama.portal.modules.member.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author sunzhuang
 * @date 2024/6/4 15:23
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */

@Getter
@Setter
@ApiModel
public class PhoneSendCodeReq implements Serializable {

    @ApiModelProperty("电话号码")
    @NotBlank(message = "电话号码不能为空")
    @Pattern(regexp = "^1[3|4|5|7|8]\\d{9}$", message = "手机号格式错误")
    private String phoneNum;
}
